@import '@/styles/color/value.scss';
.lw-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: 0.1s;
  font-weight: 500;
  padding: 9px 15px;
  font-size: 14px;
  border-radius: 4px;

  &:hover {
    color: $color-primary;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
  }
}

.lw-button-primary {
  color: #fff;
  border-color: $color-primary;;
  background-color: $color-primary;
  &:hover {
    background: $color-primary;;
    border-color: $color-primary;;
    color: #fff;
  }
}

.lw-button-success {
  color: #fff;
  border-color: $color-success;
  background-color: $color-success;
  &:hover {
    background: $color-success;
    border-color: $color-success;
    color: #fff;
  }
}

.lw-button-info {
  color: #fff;
  border-color: $color-info;
  background-color: $color-info;
  &:hover {
    background: $color-info;
    border-color: $color-info;
    color: #fff;
  }
}

.lw-button-warning {
  color: #fff;
  border-color: $color-warning;
  background-color: $color-warning;
  &:hover {
    background: $color-warning;
    border-color: $color-warning;
    color: #fff;
  }
}

.lw-button-danger {
  color: #fff;
  border-color: $color-danger;
  background-color: $color-danger;
  &:hover {
    background: $color-danger;
    border-color: $color-danger;
    color: #fff;
  }
}

.lw-button-text {
  border-color: transparent;
  color: #409eff;
  background: transparent;
  padding-left: 0;
  padding-right: 0;

  &:hover {
    color: $color-primary;;
    border-color: transparent;
    background-color: transparent;
  }
}

.lw-button.is-disabled {
  // color: #c0c4cc;
  cursor: not-allowed;
  background-image: none;
  // background-color: #a0cfff;
  // border-color: #ebeef5;
}

.lw-button-primary.is-disabled,
.lw-button-primary.is-disabled:active,
.lw-button-primary.is-disabled:focus,
.lw-button-primary.is-disabled:hover {
  color: #fff;
  background-color: #a0cfff;
  border-color: #a0cfff;
}

.lw-button-primary.is-disabled.is-plain,
.lw-button-primary.is-disabled.is-plain:active,
.lw-button-primary.is-disabled.is-plain:focus,
.lw-button-primary.is-disabled.is-plain:hover {
  color: #8cc5ff;
  background-color: #ecf5ff;
  border-color: #d9ecff;
}

.lw-button-large {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
}

.lw-button-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 3px;
}

.is-round {
  border-radius: 20px;
}
